package com.css.zfzx.fxpg.modules.picture.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author leon
 * @date 2020/11/17 19:41
 */
@Data
public class FxPictureVO implements Serializable, IExcelDataModel, IExcelModel {
    private Integer rowNum;
    private String errorMsg;

    /**
     * 图件名称
     */
    @NotNull(message = "缺失")
    @Excel(name = "图件名称", width = 15)
    private String pictureName;

    /**
     * 图件描述
     */
    @NotNull(message = "缺失")
    @Excel(name = "图件描述", width = 15)
    private String pictureDescription;

    /**
     * 文件路径(实体没有该字段)
     */
    @NotNull(message = "缺失")
    @Excel(name = "文件名称", width = 40)
    private String attchFileName;
}
